package com.skyline.wo.model;

import com.skyline.base.model.Resource;
import com.skyline.base.model.TokenValidatable;
import com.skyline.common.cache.Cachable;

/**
 * The Photo Model
 * 
 * @see table photo
 * @author wuqh
 * @version 1.00
 */
public class Photo extends Resource implements TokenValidatable, Cachable {
	private static final long serialVersionUID = 3482058853675180719L;

	private Long albumId;
	private String albumName;
	private String description;
	private String file;
	private String middleFile;
	private String smallFile;
	private String ext;
	private Long size;
	private Integer orderNo;
	private String submitToken;

	public Long getAlbumId() {
		return albumId;
	}

	public void setAlbumId(Long albumId) {
		this.albumId = albumId;
	}

	public String getAlbumName() {
		return albumName;
	}

	public void setAlbumName(String albumName) {
		this.albumName = albumName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Deprecated
	public String getFile() {
		return file;
	}

	public void setFile(String file) {
		this.file = file;
	}

	public String getMiddleFile() {
		return middleFile;
	}

	public void setMiddleFile(String middleFile) {
		this.middleFile = middleFile;
	}

	public String getSmallFile() {
		return smallFile;
	}

	public void setSmallFile(String smallFile) {
		this.smallFile = smallFile;
	}

	public String getExt() {
		return ext;
	}

	public void setExt(String ext) {
		this.ext = ext;
	}

	public Long getSize() {
		return size;
	}

	public void setSize(Long size) {
		this.size = size;
	}

	public Integer getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(Integer orderNo) {
		this.orderNo = orderNo;
	}
	
	public String getSubmitToken() {
		return submitToken;
	}

	public void setSubmitToken(String submitToken) {
		this.submitToken = submitToken;
	}
	
	public String getFkId() {
		return getAlbumId().toString();
	}
}
